package com.ruoyi.violate.domain;


import com.alibaba.excel.annotation.ExcelIgnoreUnannotated;
import com.alibaba.excel.annotation.ExcelProperty;
import lombok.Data;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

import java.util.Objects;

/**
 * 标题对象 violate_tilte
 * 
 * @author 谭拓宇
 * @date 2022-12-13
 */
@Data
@ExcelIgnoreUnannotated
public class ViolateTilte extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** id */
    private Long id;

    /** 文件id */
    //@Excel(name = "文件id")
    private String fileId;

    /** 链接 */
    @ExcelProperty(value = "链接", index = 0)
    @Excel(name = "链接")
    private String url;

    /** 标题 */
    @ExcelProperty(value = "标题", index = 1)
    @Excel(name = "标题")
    private String tilte;

    /** 价格 */
    @ExcelProperty(value = "价格", index = 2)
    @Excel(name = "价格")
    private String money;

    /** 类目 */
    @ExcelProperty(value = "多级类目", index = 3)
    @Excel(name = "多级类目")
    private String type;



    /** excel存储路径 */
    private String filePath;
    /** 一级类目 */
    @ExcelProperty(value = "一级类目", index = 4)
    @Excel(name = "一级类目")
    private String type1;
    @Excel(name = "二级类目")
    private String type2;
    @Excel(name = "三级类目")
    private String type3;
    private String type4;
    private String type5;

    /** 利润标签 */
    @ExcelProperty(value = "利润标签", index = 5)
    @Excel(name = "利润标签")
    private String states ;

    /** 链接和标题进行链接 */
    @ExcelProperty(value = "连接符", index = 6)
    @Excel(name = "连接符")
    private String Connectors;

    private Long number ;

    //店铺名
    private String shop ;

    //全开选择
    private String choose ;

    //同行价格区间
    private String price_range_th ;

    //爆款价格区间
    private String price_range_bk ;

    //同行提取数量
    private int ThNumber ;

    //爆款提取数量
    private int BkNumber ;

    @Override
    public int hashCode() {
        return Objects.hash(id, fileId, url, tilte, money, type, filePath, type1, type2, type3, type4, type5, states, number, shop, choose, price_range_th, price_range_bk, ThNumber, BkNumber,Math.random());
    }

    @Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (o == null || getClass() != o.getClass()) return false;
        ViolateTilte that = (ViolateTilte) o;
        return ThNumber == that.ThNumber &&
                BkNumber == that.BkNumber &&
                Objects.equals(id, that.id) &&
                Objects.equals(fileId, that.fileId) &&
                Objects.equals(url, that.url) &&
                Objects.equals(tilte, that.tilte) &&
                Objects.equals(money, that.money) &&
                Objects.equals(type, that.type) &&
                Objects.equals(filePath, that.filePath) &&
                Objects.equals(type1, that.type1) &&
                Objects.equals(type2, that.type2) &&
                Objects.equals(type3, that.type3) &&
                Objects.equals(type4, that.type4) &&
                Objects.equals(type5, that.type5) &&
                Objects.equals(states, that.states) &&
                Objects.equals(Connectors, that.Connectors) &&
                Objects.equals(number, that.number) &&
                Objects.equals(shop, that.shop) &&
                Objects.equals(choose, that.choose) &&
                Objects.equals(price_range_th, that.price_range_th) &&
                Objects.equals(price_range_bk, that.price_range_bk);
    }
}
